/**
 * Copyright (c) 2013-2015, Jieven. All rights reserved.
 *
 * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
 * To use it on other terms please contact us at 1623736450@qq.com
 */
package com.eova.repair.interceptor;

import com.eova.core.meta.MetaObjectIntercept;
import com.eova.repair.model.RRepairType;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;

/**
 *
 * 2015年8月28日
 */
public class RModelIntercept extends MetaObjectIntercept {

	@Override
	public void deleteBefore(Controller ctrl, Record record) throws Exception {
		Integer r_model_id= record.getInt("r_model_id");
		RRepairType.dao.deleteByMid(r_model_id);
	}
	
	
}